<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>
<script>
export default {
    name: "App",
    data() {
        return {
            isShow: false,
            resizeTimer: null,
        };
    },
    mounted() {
        // setTimeout(() => {
        //     this.isShow = true;
        // }, 300);
        // this.onResize();
        // window.addEventListener("resize", () => {
        //     this.onResize();
        // });
    },
    methods: {
        onResize() {
            clearTimeout(this.resizeTimer);
            this.resizeTimer = setTimeout(() => {
                this.save({
                    path: "screenWidth",
                    data: window.innerWidth,
                });
            }, 200);
        },
    },
};
</script>
<style lang="scss"></style>
